n=eval(input("请输入一个值:"))
for i in range (1,n) :
    print(i)
    n=n*i
print(n)
